package com.ruoyi.common.core.constant;

public class CommodityConstants {
    /** 校验是否唯一的返回标识 */
    public final static boolean UNIQUE = true;
    public final static boolean NOT_UNIQUE = false;

    /** 正常状态 */
    public static final String NORMAL = "0";



    /** 下架状态 */
    public static final String SOLD_OUT = "1";

    /** 类型正常状态 */
    public static final Integer TYPE_NORMAL = 0;

    /** 类型停用状态 */
    public static final Integer TYPE_DISABLE = 1;

    /**
     * 商品名长度限制
     */
    public static final int COMMODITY_MIN_LENGTH = 2;

    public static final int COMMODITY_MAX_LENGTH = 20;

    /**
     * 密码长度限制
     */
    public static final int PASSWORD_MIN_LENGTH = 5;

    public static final int PASSWORD_MAX_LENGTH = 20;

}
